package com.zdlog.wenjuan.service;

import com.zdlog.wenjuan.VO.ResultBoolenVO;
import com.zdlog.wenjuan.dataobject.FormInfo;
import com.zdlog.wenjuan.dto.web.FormDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @program: wenjuanSer
 * @PACKAGE_NAME: com.zdlog.wenjuan.service
 * @author: Kuaile
 * @create: 2018-02-03 23:08
 * 问卷
 **/
public interface FormService {


    Page<FormDTO> list(String userId,Pageable pageable);

    FormInfo findId(String id);


    FormInfo save(FormInfo formInfo);

    FormInfo updata(FormInfo formInfo);


    ResultBoolenVO detail(String formId);

    ResultBoolenVO delete(String formId);

    List<FormInfo> findName(String formName,Integer status);


    com.zdlog.wenjuan.dto.android.FormDTO findById(String formId);

}
